package com.lib76.buildCode.dto;

/**
 * 树节点结构
 * @author 张浩
 *
 */
public class TreeNode {

	private String id;
	private String pid;
	private String name;
	private Boolean isLeaf;
	private Boolean checked = false; 
	
	public TreeNode(){}
	
	public TreeNode(String id,String name,String pid,Boolean isLeaf){
		this.id = id;
		this.name = name;
		this.pid = pid;
		this.isLeaf = isLeaf;
	}
	
	public TreeNode(String id,String name){
		this.id = id;
		this.name = name;
		this.pid = null;
		this.isLeaf = false;
	}
	
	public TreeNode(String id,String name,String pid){
		this.id = id;
		this.name = name;
		this.pid = pid;
		this.isLeaf = true;
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getPid() {
		return pid;
	}
	public void setPid(String pid) {
		this.pid = pid;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Boolean getIsLeaf() {
		return isLeaf;
	}
	public void setIsLeaf(Boolean isLeaf) {
		this.isLeaf = isLeaf;
	}
	public Boolean getChecked() {
		return checked;
	}
	public void setChecked(Boolean checked) {
		this.checked = checked;
	}
	
}
